HTMLify
style.css
Views: 12 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | * { margin: 0; padding: 0; font-family: sans-serif; } header { width: 100%; height: 100vh; background-image: linear-gradient(#0093e9, #80d0c7); display: flex; justify-content: center; align-items: center; } .selector { width: 350px; } #selectField { width: 100%; padding: 15px 20px; margin-bottom: 30px; box-sizing: border-box; background: rgba(255, 255, 255, 0.7); border-radius: 6px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; } #selectField img { width: 12px; transition: transform 0.5s; } #list { width: 100%; background: rgba(255, 255, 255, 0.7); border-radius: 6px; overflow: hidden; } .options { width: 100%; position: relative; padding: 15px 0 15px 70px; list-style: none; box-sizing: border-box; } .options img { width: 25px; position: absolute; top: 12px; left: 25px; } .options:hover { background: rgba(255, 255, 255, 0.7); } /* JavaScript */ .hide { visibility: hidden; } .rotate { transform: rotate(180deg); } |